package com.dustedpixels.jasmin.unit.implbase;

import com.dustedpixels.jasmin.unit.Unit;

public abstract class UnitImplBase implements Unit {

    public int processCycles(int cycles) {
        int cyclesProcessed = 0;
        
        while (cyclesProcessed < cycles)
            cyclesProcessed += processSlice();
        
        return cyclesProcessed;
    }
}
